package abstractfactory;

import abstractfactory.impl.AppleFactory;
import abstractfactory.impl.SonyFactory;
import abstractfactory.module.Computer;
import abstractfactory.module.Phone;

import java.text.DateFormat;
public class ClientTest {
	
	public void test(){
		Computer applePC, sonyPC;
		Phone    iPone,   sonyPhone;
		
		SonyFactory   sonyFactory = new SonyFactory();
		AppleFactory  appleFactory = new AppleFactory();
		
		applePC = appleFactory.createComputer();
		sonyPhone = sonyFactory.createPhone();
		iPone = appleFactory.createPhone();
		sonyPC = sonyFactory.createComputer();
	}
	  
	public static void main(String[] arg){
		ClientTest myTest = new ClientTest();
		myTest.test();
	}
	
	

}
